package com.example.administrator.rxjavademo;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;

/**
 * Created by ytf on 2019/3/25 025.
 * Description:
 */
public class V1 extends View
{
    public V1(Context context)
    {
        super(context);
    }

    private final int[] ATTRS = {android.R.attr.background};

    public V1(Context context, @Nullable AttributeSet attrs)
    {
        super(context, attrs);
        TypedArray ta = context.obtainStyledAttributes(attrs, ATTRS);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
    {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }

    @Override
    protected void onDraw(Canvas canvas)
    {
        super.onDraw(canvas);
    }
}
